# encoding: utf-8
"""
Input arguments (Parameters) for databases resources RESTful API
-----------------------------------------------------------
"""


from flask_marshmallow import base_fields
from flask_restplus_patched import Parameters
from flask_restplus_patched import PostFormParameters, PatchJSONParameters

from . import schemas


class DbImportParameters(Parameters):

    dump_path = base_fields.String(
        description="",
        missing=None,    # default value
    )

    db_type = base_fields.String(
        description="",
        missing=None,    # default value
    )

    db_name = base_fields.String(
        description="",
        missing=None,    # default value
    )


class DbReImportParameters(Parameters):

    zone = base_fields.String(
        description="[gzidc,usaws,auaws,euaws,can,usla]",
        missing=None,    # default value
        required=True,
    )

    db_type = base_fields.String(
        description="[oracle,mysql,cassandra]",
        missing=None,    # default value
        required=True,
    )

    db_name = base_fields.String(
        description="",
        missing=None,    # default value
        required=True,
    )

    data_from = base_fields.String(
        description="[demo,product]",
        missing='demo',    # default value
        required=True,
    )


class UpdateDumpTimeParameters(Parameters):

    data_from = base_fields.String(
        description="[demo,product]",
        missing='demo',    # default value
        required=True,
    )


class DumpCheckParameters(Parameters):

    data_from = base_fields.String(
        description="[demo,product]",
        missing='demo',    # default value
        required=True,
    )

